package MYarray;

import java.util.Objects;

public class MyArray<E>{
    public  Object[] array=new Object[10];

    public E  getArray(int pos) {
        return (E)array[pos];
    }
    public void setArray(int pos,E val){
        array[pos] = val;
    }

    /*public Objects[] array=new Objects[10];
    public void setArray(int pos,Objects val){
        array[pos]=val;
    }
    public Objects  getArray(int pos){
        return array[pos];
    }*/
}
